package myexchange

class CardController {

	def scaffold = Card
	
	def show = {
		Card card
		if(params.id){
			card = Card.read(params.id)
		}
		if(!card){
			card = Card.read(1);
		}
		
		render(template:"cardInfo", model:[card:card])
	}
}
